<%@ page contentType="text/html; charset=UTF-8"%>
<% 
	String realPath = request.getContextPath()+ "/";  
%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>[新闻审核-未审核列表]</title>
		<script src="<%=realPath %>zenithsun/news/review/js/review.js" type="text/javascript"></script>
		<link href="<%=realPath %>base/css/common.css" rel="stylesheet" type="text/css" />
		<script src="<%=realPath %>base/js/base.js" type="text/javascript"></script>
		<script src="<%=realPath %>base/js/common/FormFunction.js" type="text/javascript"></script>
		<script src="<%=realPath %>baseNew/plugins/jQuery/jQuery-2.2.0.min.js"></script>
		<link href="<%=realPath %>baseNew/bootstrap/css/bootstrap.min.css" rel="stylesheet">
		<script src="<%=realPath %>baseNew/bootstrap/js/bootstrap.js" type="text/javascript"></script>
    	<link href="<%=realPath %>baseNew/other/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
		<script src="<%=realPath %>baseNew/other/js/bootstrap-datetimepicker.js" type="text/javascript"></script>
		<script src="<%=realPath %>baseNew/other/js/locales/bootstrap-datetimepicker.zh-CN.js" type="text/javascript"></script>
		<link rel="stylesheet" href="<%=realPath %>baseNew/dist/css/AdminLTE.min.css">
  		<script src="<%=realPath %>baseNew/other/js/bootbox.min.js" type="text/javascript"></script>
  		<link rel="stylesheet" href="<%=realPath %>baseNew/validator/css/bootstrapValidator.css"/>
  		<script type="text/javascript" src="<%=realPath %>baseNew/validator/js/bootstrapValidator.js"></script>
  		<link href="<%=realPath %>base/imgsel/css/style.css" rel="stylesheet" type="text/css" />
  		<script src="<%=realPath %>zenithsun/js/ModalUtil.js" type="text/javascript"></script>
  		<link rel="stylesheet" href="<%=realPath %>zenithsun/css/admin-imgList.css"/>
  		<script src="<%=realPath %>base/imgsel/js/img.js" type="text/javascript"></script>
  		<link rel="stylesheet" href="<%=realPath %>base/imgsel/css/style.css"/>
		<!-- 公用的按钮函数 -->
		<script>
		
			var viewUrl = "<%=realPath %>path/newsReview/viewreview";//表单列表view的url地址
			var listUrl = "<%=realPath %>path/newsReview/listreview";//表单列表list 的url地址,用来作为搜索地址
 			var initReviewDetailUrl = "<%=realPath %>path/review/initreviewdetail";//表单列表list 的url地址,用来作为搜索地址
			function defaultEvent(eventType,width,height) {
				doLoadNewsInfo();
			}
 		
		</script>
	</head>

	<body class="rightBody">
		<div class="form-inline">
			<table width="100%" class="title" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>
						<div class="form-group">
							<label class="control-label sr-only" for="searchValue_'title'_">搜索内容：</label>
							<input type="text" name="searchValue['title']" id="searchValue_title" class="form-control input-sm" placeholder="新闻标题..."/>
							<input type="button" value="搜索" class="btn btn-primary btn-sm" onclick="doLoadNewsInfo();" />
						</div>
					</td>
					<td align="right">
				    <div class="form-group">
				    </div>
				  </td>
				</tr>
			</table>
			
			<div class="picList js-listEdit">
			  <ul class="mod-itemsLi clearfix" id="reviewList">
			  	    <li id="lastNewsInfo"  style="display: none;">
			  </ul>
			</div>
			<div id="newsInfoTemplate" style="display: none;">
				<li onmousemove="mve(this)" onmouseout="mot(this)" style="width: 285px;height: 300px;">
		  		  <dl>
		  		  	<dt class="mod-itemsTitle">
		  		  		<h3>%news.title%</h3>
		  		  		<p class="mod-itemsTitle-decsr clearfix">
			  		  		<span class="fn-fr">%news.createTime%</span>
		  		  			%news.type%
			  		  	</p>
		  		  	</dt>
		  		    <dd class="mod-itemsContent">
		  		      <div id="div_%news.id%">
		  		      	<img src="%news.coverPath%" id="cover_%news.id%" style="width: 265px;height: 175px;"/>
		  		      	%news.picNum%
		  		      </div>
		  		      <div class="picList-editGrid-wrap j-popShow" onclick="mck(this)">
							<div class="mod-picList-Decsr">%news.comments%</div>
						</div>
		  		      <div class="mod-itemContent-info">
		  		      		%news.nabstract%
		  		      </div>
						<div class="picList-editGrid-wrap j-popShow" onclick="mck(this)"></div>
		  		      <div class="picList-editGrid j-popShow">
		  		         <input style="display: none;" type="checkbox" id="%news.id%" name="selectedRow" value="%news.id%" />
		  		        <a class="i-search-btn" href="javascript:openNewsDetail('%news.id%');" title="查看新闻"><i class="fa fa-search"></i></a>
	  		        	<a class="i-edit-btn" href="javascript:openReviewDetail('%news.revid%')" title="审核新闻"><i class="fa fa-edit"></i> </a>
		  		      </div>
		  		    </dd>
		  		  </dl>
			    </li>
			</div>
			<div class="pagnation" id="pagnation"></div>
		</div>
		<div id="myDlg"></div>
		<br/>
		
	</body>
	<script type="text/javascript">
		var reviewState="1";
		/**
		* 打开审核明细页面
		*/
		function openReviewDetail(revId) {
			ModalUtil.showModal('myDlg',initReviewDetailUrl+"?revId="+revId,'addReviewDetailModal',function() {});
		}
		/**
		* 打开新闻详情明细页面
		*/
		function openNewsDetail(busId) {
			ModalUtil.showModal('myDlg','<%=realPath %>path/newsinfo/viewNewsinfo2?newsId='+busId,'viewModal',function() {});
		}
		var realPath="<%=realPath %>";
		//动态加载
		$(function () {
			doLoadNewsInfo();
			//绑定回车搜索
			$("#searchValue_title").keyup(function(){
				if(event.keyCode==13){
					doLoadNewsInfo();
				}
			});
    	});
    	
    		//此为图片列表鼠标经过时编辑事件
		function mve(obj){
			$(obj).find(".j-popShow").show();
		}
		//此为图片列表鼠标经过时删除事件
		function mot(obj){
			$(obj).find(".j-popShow").hide();
		}
		//此为图片列表鼠标经过时点击选中事件
		function mck(obj){
			$(obj).find("div").toggleClass('selected');
			var objBtn = $(obj).find("input:checkbox");
			if(objBtn.prop('checked')){
				objBtn.prop('checked', false);
			} else {
				objBtn.prop('checked', true);
			}
		}
	</script>
</html>